pmic: tps65090: correct checking i2c bus
authorJeroen Hofstee <[email protected]>
Sun, 15 Jun 2014 15:17:04 +0000 (17:17 +0200)
committerTom Rini <[email protected]>
Thu, 19 Jun 2014 15:19:05 +0000 (11:19 -0400)
commita348d56934d6b0de31d5bdc12911a63e186e8ffa
tree857a4bba33a2a3f81efa5b2a2183f31932e8021c
parent1f9ce3063cd723a1dcf0d02070f07c59491cf6f9
pmic: tps65090: correct checking i2c bus

The function tps65090_init checks the i2c bus of p->bus. However
the pointer p is not intialiased at this point. Check the local
variable bus instead.

cc: Tom Wai-Hong Tam <[email protected]>
Signed-off-by: Jeroen Hofstee <[email protected]>
Acked-by: Simon Glass <[email protected]>
drivers/power/pmic/pmic_tps65090.c